wgl: Create context during WGL initialization
authorBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 04:16:37 +0000 (06:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 27 Apr 2023 00:16:46 +0000 (02:16 +0200)
commitd6afcee1e4fd48fdeb6ccec63ac2287091c863d7
tree0b193ccf3e8a2a39b464af264dbe40f6810e9009
parentc71ca481c1279783de1a28733bec6b54af0f6f65
wgl: Create context during WGL initialization

This way, we can realize it and either print success information about
it or return NULL if that fails.

This makes it more likely that we fail early, which means we can then
initialize EGL.
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkglcontext-win32-wgl.c
gdk/win32/gdkglcontext-win32.h